﻿define([], function () {
    var common = angular.module("common", ["ui.bootstrap"]);

    common.factory("appEvents", ["$q", function ($q) {
        var deferred = $q.defer();

        return {
            triggerInit: function () {
                deferred.resolve();
            },

            onInit: deferred.promise
        };
    }]);
    return common;
});